package cn.growthgate.fgo.entity;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 登录日志
 * </p>
 *
 * @author GrowthGate
 * @since 2019-05-09
 */
@TableName("t_sys_login_log")
public class LoginLog extends Model<LoginLog> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 登录时间
     */
    private Date loginTime;

    /**
     * 登录主机
     */
    private String host;

    /**
     * 操作系统
     */
    private String os;

    /**
     * 浏览器
     */
    private String ua;

    /**
     * 浏览器版本
     */
    private String uaVersion;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public Date getLoginTime() {
        return loginTime;
    }

    public void setLoginTime(Date loginTime) {
        this.loginTime = loginTime;
    }
    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }
    public String getOs() {
        return os;
    }

    public void setOs(String os) {
        this.os = os;
    }
    public String getUa() {
        return ua;
    }

    public void setUa(String ua) {
        this.ua = ua;
    }
    public String getUaVersion() {
        return uaVersion;
    }

    public void setUaVersion(String uaVersion) {
        this.uaVersion = uaVersion;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LoginLog{" +
        "id=" + id +
        ", userId=" + userId +
        ", loginTime=" + loginTime +
        ", host=" + host +
        ", os=" + os +
        ", ua=" + ua +
        ", uaVersion=" + uaVersion +
        "}";
    }
}
